// 审批记录
import request from "@/utils/https/requests";

// 列表
export function approvalRecordList(data: any) {
    return request({
        url: "/approvalRecord/list", method: "post", data,
    });
}

// 添加
export function postAddApprovalRecord(data: any) {
    return request({
        url: "/approvalRecord/postAdd", method: "post", data,
    });
}

// 修改
export function postModApprovalRecord(data: any) {
    return request({
        url: `/approvalRecord/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteApprovalRecord(id: string) {
    return request({
        url: `/approvalRecord/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteApprovalRecord = (id) => {
    return request({
        url: `/approvalRecord/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function approvalRecordDetail(id: string) {
    return request({
        url: `/approvalRecord/detail/${id}`, method: "post",
    });
}